<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<include file="Public:meta" />
    <style>
    	.line{ font-weight:normal; margin-right:8px;}
		.line i{ font-style:normal; color:red;}
		.PcInviteUrl{ }
		.DownLine1{color: red;}
		.DownLine2{ color: green;}
		.DownLine3{color: blue; }
    </style>
</head>
<body id="main_page">
<div class="container">
    <form enctype="multipart/form-data" method="post" id="frm">
        <input type="hidden" name="p" id="p" value="{$NowPage}" />
        <div class="table">
           <div class="toolbars">
           		<li class="toolbar">
                	<span class="line">总下线：<i>{$DownlineCount}</i></span>
                    <span class="line">一级下线：<i>{$Downline1Count}</i></span>
                    <span class="line">二级下线：<i>{$Downline2Count}</i></span>
                    <span class="line">三级下线：<i>{$Downline3Count}</i></span>
                </li>
                <li class="toolbar">我的邀请注册链接：<span class="PcInviteUrl">{:PcInviteUrl()}</span></li>
                <li  class="toolbar toolbarform">
                    <select name="Level" id="Level">
                    	<option value="-1">所有</option>
                        <option value="1">一级下线</option>
                        <option value="2">二级下线</option>
                        <option value="3">三级下线</option>
                    </select>
                    <input id="btnSeek" class="btnToolbarForm" type="submit" value="查询" onclick="search()">
                </li>
            </div>
            <table class="datatable" id="datatable">
                <tr>
                     <th width="55px" >ID</th>
                     <th>用户名称</th>
                     <th width="80px">下线级数</th>
                     <th width="120px">分销等级</th>
                     <th width="80px">真实姓名</th>
                     <th width="110px" >手机号码</th>
                     
                     <th width="160px" >Email</th>
                     <th width="120px" >时间</th>
                </tr>  
                <notempty name="Data">
                    <volist name="Data" id="d">
                        <tr>
                            <td>{$d.MemberID}</td>
                            <td style="padding-left:5px; text-align:left;">{$d.MemberName}</td>
                            <td><b class="DownLine{$d.DownLineLevelID}">{$d.DownLineLevelName}</b></td>
                            <td>{$d.DistributorLevelName}</td>
                            <td>{$d.MemberRealName}</td>
                            <td>{$d.MemberMobile}</td>
                            
                            <td>{$d.MemberEmail}</td>
                            <td>{$d.DistributorTime|strtotime|yd_friend_date}</td>
                        </tr>
                    </volist>
                <else/>
                    <tr><td colspan="8" id="NoData">您还没有这级下线，快去邀请好友吧~</td></tr>
                </notempty>                                  
            </table>
        </div>
    </form>
</div>
</body>
</html>

<script type="text/javascript">
//查询
function search(){
	$('#frm').attr("action", "{$Url}downline");
	$('#frm').submit();
	return true;
}

$(document).ready(function(){
	pageInit();
});

function pageInit(){
	$("#Level").val("{$Level}");
}
</script>